/**
 * Copyright(c) by JNet Smartware Group.
 * All rights reserved. Not distribution or redistribution without
 * any permission of JNet Smartware Group.
 * 
 * @author thuc
 * 2010/07/31
 */
package vn.smartware.co.server.sql.factory;

import java.sql.Connection;

import vn.smartware.co.dto.MstCustomerDTO;
import vn.smartware.co.framework.bean.LoginDTO;
import vn.smartware.co.framework.db.factory.SQLManager;
import vn.smartware.co.framework.exception.ServerException;

/**
 * @author thuctt
 * AbstractRegisterCustomerSQLManager
 */
public abstract class AbstractRegisterCustomerSQLManager extends SQLManager {

	/**
	 * makeRegisterCustomerSQL
	 * @param customer
	 * @param user
	 * @param conn
	 * @throws ServerException
	 */
	abstract public void makeRegisterCustomerSQL(MstCustomerDTO customer,
			LoginDTO user, Connection conn) throws ServerException;

	/**
	 * getMaxCustomerNoSQL
	 * @param conn
	 * @throws ServerException
	 */
	abstract public void getMaxCustomerNoSQL(Connection conn)
			throws ServerException;

	/**
	 * makeUpdateCustomerSQL
	 * @param customer
	 * @param user
	 * @param conn
	 * @throws ServerException
	 */
	abstract public void makeUpdateCustomerSQL(MstCustomerDTO customer,
			LoginDTO user, Connection conn) throws ServerException;

	/**
	 * makeDeleteCustomerSQL
	 * @param customerNo
	 * @param user
	 * @param conn
	 * @throws ServerException
	 */
	abstract public void makeDeleteCustomerSQL(String customerNo, LoginDTO user,
			Connection conn) throws ServerException;

}
